Optimal. Leaf size=37 \[ \frac{a \log \left (1-c x^n\right )}{c n}-\frac{b \text{PolyLog}\left (2,1-c x^n\right )}{c n} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.144024, antiderivative size = 37, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 4, integrand size = 25, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.16, Rules used = {2343, 2333, 2316, 2315} \[ \frac{a \log \left (1-c x^n\right )}{c n}-\frac{b \text{PolyLog}\left (2,1-c x^n\right )}{c n} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2343
Rule 2333
Rule 2316
Rule 2315
Rubi steps
\begin{align*} \int \frac{a+b \log \left (c x^n\right )}{x \left (c-x^{-n}\right )} \, dx &=\frac{\operatorname{Subst}\left (\int \frac{a+b \log (c x)}{\left (c-\frac{1}{x}\right ) x} \, dx,x,x^n\right )}{n}\\ &=\frac{\operatorname{Subst}\left (\int \frac{a+b \log (c x)}{-1+c x} \, dx,x,x^n\right )}{n}\\ &=\frac{a \log \left (1-c x^n\right )}{c n}+\frac{b \operatorname{Subst}\left (\int \frac{\log (c x)}{-1+c x} \, dx,x,x^n\right )}{n}\\ &=\frac{a \log \left (1-c x^n\right )}{c n}-\frac{b \text{Li}_2\left (1-c x^n\right )}{c n}\\ \end{align*}
Mathematica [A] time = 0.0176798, size = 37, normalized size = 1. \[ \frac{b \text{PolyLog}\left (2,c x^n\right )+\log \left (1-c x^n\right ) \left (a+b \log \left (c x^n\right )\right )}{c n} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.043, size = 33, normalized size = 0.9 \begin{align*}{\frac{a\ln \left ( c{x}^{n}-1 \right ) }{nc}}-{\frac{b{\it dilog} \left ( c{x}^{n} \right ) }{nc}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} b \int \frac{x^{n} \log \left (c\right ) + x^{n} \log \left (x^{n}\right )}{c x x^{n} - x}\,{d x} + \frac{a \log \left (\frac{c x^{n} - 1}{c}\right )}{c n} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.30936, size = 115, normalized size = 3.11 \begin{align*} \frac{b n \log \left (-c x^{n} + 1\right ) \log \left (x\right ) + b{\rm Li}_2\left (c x^{n}\right ) +{\left (b \log \left (c\right ) + a\right )} \log \left (c x^{n} - 1\right )}{c n} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: TypeError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{b \log \left (c x^{n}\right ) + a}{{\left (c - \frac{1}{x^{n}}\right )} x}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]